<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            width: 780px;
            border: 1px solid #000;
            border-collapse: collapse;
        }
        
        td,
        th {
            border: 1px solid #000;
        }
    </style>
</head>

<body>
    <table>
        <tr>
            <th>编号</th>
            <th>商品名称</th>
            <th>规格</th>
            <th>价格</th>
            <th>删除</th>
        </tr>
        <?php foreach($data as $v): ?>
        <tr>

            <td>
                <?php echo $v['proID']?>
            </td>
            <td>
                <?php echo $v['proname']?>
            </td>
            <td>
                <?php echo $v['proguige']?>
            </td>
            <td>
                <?php echo $v['proprice']?>
            </td>
            <td><a href="index.php?c=Products&a=del&proid=<?php echo $v['proID']?>" onclick="return confirm('确定要删除吗')">删除</a></td>
        </tr>
        <?php endforeach; ?>
    </table>

</body>

</html>